//
//  PlayBar.h
//  ImGuider
//
//  Created by 王鹏宇 on 2017/6/2.
//  Copyright © 2017年 imguider. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "IGAvPlayerManager.h"
#import "ProgressBtn.h"
@protocol playBarDelegate <NSObject>

@required
- (void)downloadStart;

- (void)downloadSuspend;
- (void)changeRecordPointWith:(NSInteger)state isAutomatic:(BOOL)isAutomatic; // state 1 下一首    -1 上一首
@optional



@end
@interface PlayBar : UIView

@property (nonatomic, copy) NSString * CurrentPointID;
@property (nonatomic, copy) NSString * CurrentPlayIcon;
@property (nonatomic, strong) ProgressBtn * downloadBtn;
@property (nonatomic) CGFloat progressValue;
@property (nonatomic) CGFloat downloadProgress;
@property (nonatomic) DownloadState  downloadState;
@property (nonatomic, weak) id <playBarDelegate> delegate;

@property (nonatomic) NSInteger type;// 1城市导览，2景点

- (void)playMusicWithPlayPath:(ScenicPoint *)scenicPoint withIsPlay:(BOOL)isImmediately;
+ (instancetype)shareManeger;


@end
